<?Php
class User_V2_Member extends User_V2_Base
{
    public function __construct ($uid = NULL, $userinfo = NULL)
    {
        parent::__construct($uid, $userinfo);
    }

    public function logout ()
    {
        Passport::setCurrentUserUid(0);
    }

    public function resetPassword($newPassword)
    {
        DB::update('user_v2')
            ->set(array(
                'userToken' => md5($newPassword),
            ))
            ->where('uid', '=', $this->_uid)
            ->limit(1)
            ->execute();
    }
}
